package com.suse.ecommerce.pojo;

import java.io.Serializable;

public class OrderProduct implements Serializable {
    private Long itemId;

    private Long productId;

    private String productTitle;

    private Integer productNum;

    private Long onePrice;

    private Long totalPrice;

    private String orderId;

    private static final long serialVersionUID = 1L;

    public OrderProduct(Long itemId, Long productId, String productTitle, Integer productNum, Long onePrice, Long totalPrice, String orderId) {
        this.itemId = itemId;
        this.productId = productId;
        this.productTitle = productTitle;
        this.productNum = productNum;
        this.onePrice = onePrice;
        this.totalPrice = totalPrice;
        this.orderId = orderId;
    }

    public OrderProduct set(Long itemId, Long productId, String productTitle, Integer productNum, Long onePrice, Long totalPrice, String orderId){
        this.itemId = itemId;
        this.productId = productId;
        this.productTitle = productTitle;
        this.productNum = productNum;
        this.onePrice = onePrice;
        this.totalPrice = totalPrice;
        this.orderId = orderId;
        return this;
    }

    public OrderProduct() {
        super();
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle == null ? null : productTitle.trim();
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Long getOnePrice() {
        return onePrice;
    }

    public void setOnePrice(Long onePrice) {
        this.onePrice = onePrice;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }
}